import { App } from 'vue'
import { ViewLayout } from './ViewLayout'
import { IndexLayout } from './IndexLayout'
import { YTable } from './YTable'
import { ComponentRender } from './ComponentRender'
import { FormMaker } from './FormMaker'
import { SelectMaker } from './SelectMaker'
import { RadioButtonMaker } from './RadioMaker'



const components = {
  YTable, ViewLayout, IndexLayout, ComponentRender, FormMaker, SelectMaker, RadioButtonMaker
}

export function globalComponentSetup(app: App) {
  Object.keys(components).forEach(name => {
    app.component(name, components[name])
  })
}